﻿using System;
using Microsoft.ReportingServices.DataProcessing;
using System.Management.Automation;

namespace PowerShellDataProcessingExtension
{
    /// <summary>
    /// Represents additional transaction properties that can be implemented 
    /// by Reporting Services data processing extensions.
    /// </summary>
    /// <remarks>
    /// The IDbTransaction interface enables you to implement a Transaction 
    /// class, which represents the transaction to be performed at a data source.
    /// An application does not create an instance of the IDbTransaction interface directly, 
    /// but creates an instance of a class that implements IDbTransaction.  Classes that 
    /// inherit IDbTransaction must implement the inherited members, and typically define 
    /// additional members to add provider-specific functionality.
    /// </remarks>
    class PSDBTransaction : IDbTransaction
    {
        /// <summary>
        /// Commits the database transaction.
        /// </summary>
        public void Commit()
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// Rolls back a transaction from a pending state.
        /// </summary>
        public void Rollback()
        {
            throw new NotImplementedException();
        }

        public void Dispose()
        {
            throw new NotImplementedException();
        }
    }
}
